import hyRequest from '@/service/index'

// 行政组织管理-查询全部
export const getGovOrgAll = (form?: any) => {
  return hyRequest.post({
    url: '/village/govOrg/findAll',
    data: form
  })
}

// 行政组织管理-新增
export const addGovOrg = (form?: any) => {
  return hyRequest.post({
    url: '/village/govOrg/insert',
    data: form
  })
}

// 行政组织管理-编辑
export const editGovOrg = (form?: any) => {
  return hyRequest.post({
    url: '/village/govOrg/update',
    data: form
  })
}

// 行政组织管理-删除
export const delGovOrg = (form?: any) => {
  return hyRequest.post({
    url: '/village/govOrg/delete',
    data: form
  })
}

// 行政组织管理-导出数据
export const leadGovOrg = () => {
  return hyRequest.get({
    url: '/village/govOrg/export',
    responseType: 'blob'
  })
}
